From: Keir Fraser Date: Wed, 23 Jun 2010 22:23:57 +0000 (+0100) Subject: mce: k7 cleanup X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11886 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=646ac9f7b4c0fce7fa78dd9e4b22e54386f21a08;p=xen.git mce: k7 cleanup Signed-off-by: Christoph Egger --- diff --git a/xen/arch/x86/cpu/mcheck/k7.c b/xen/arch/x86/cpu/mcheck/k7.c index 7b5ea16dc9..ec984f8e91 100644 --- a/xen/arch/x86/cpu/mcheck/k7.c +++ b/xen/arch/x86/cpu/mcheck/k7.c @@ -19,51 +19,53 @@ /* Machine Check Handler For AMD Athlon/Duron */ static fastcall void k7_machine_check(struct cpu_user_regs * regs, long error_code) { - int recover=1; - u32 alow, ahigh, high, low; - u32 mcgstl, mcgsth; + int recover = 1; + uint64_t msr_content, mcgst; int i; - rdmsr (MSR_IA32_MCG_STATUS, mcgstl, mcgsth); - if (mcgstl & (1<<0)) /* Recoverable ? */ - recover=0; + rdmsrl(MSR_IA32_MCG_STATUS, mcgst); + if (mcgst & MCG_STATUS_RIPV) /* Recoverable ? */ + recover = 0; - printk (KERN_EMERG "CPU %d: Machine Check Exception: %08x%08x\n", - smp_processor_id(), mcgsth, mcgstl); + printk(KERN_EMERG "CPU %d: Machine Check Exception: 0x%016"PRIx64"\n", + smp_processor_id(), mcgst); - for (i=1; i